﻿
namespace EasyStep
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class IoPathHelper
    {
        public static string TransformReplacements(this string folderLocation, Dictionary<string, string> existingReplacements=null)
        {
            if (existingReplacements ==null || string.IsNullOrEmpty(folderLocation)) return folderLocation;
            var result=new StringBuilder (folderLocation);
            foreach (var v in existingReplacements)///TODO: regular expression could be used here
                result = result.Replace(v.Key, v.Value);
            return result.ToString();
        }
    }
}
